Repository navigation
[1404] 页眉与 --help 显示版本号及开发者模式标记 - #25
Merged
Merged
Conversation
通过 (liii sys) 的 library-file 在库体顶层捕获源码绝对路径: - 路径位于 ~/.gf/site-lisp 之下 → 正式安装,不显示标记 - 否则 → 开发者模式,显示源码仓库根(home 前缀缩写成 ~) 效果: - 交互页眉:gfcode v2026.11.24 (~/git/gfcode2) - gf pi --help 首行:gf pi v2026.11.24 (~/git/gfcode2) 依赖 goldfish 侧修复:local 层显式注册的工具整体覆盖低层条目, 避免 user 层 package 字段残留导致 gf pi 误走缓存包。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目标
在开发者模式(直接从源码仓库运行
gf pi)下,于版本号后追加源码仓库路径标记,便于区分正式安装与开发调试。实现
利用
(liii sys)的library-file在库体顶层捕获本源码文件的绝对路径(运行期调用会返回调用方文件,必须在顶层缓存):~/.gf/site-lisp之下 → 正式安装,不显示标记~,分隔符统一为/)效果
交互页眉:
gf pi --help首行:改动文件
tui/liii/pi/tui/interactive/header.scm:页眉追加开发者标记tui/liii/pi/tui/cli/help.scm:--help首行显示版本号 + 开发者标记tui/tests/liii/pi/tui/interactive/header/make-pi-header-test.scm:补充开发者标记断言依赖
依赖 goldfish 侧配套修复(见 MoganLab/goldfish):
gfproject三层配置合并时,local 层显式注册的工具应整体覆盖低层条目,否则本仓库用tools_dir开发时,user 层package字段会残留,导致gf pi误走缓存包而非本仓库代码。验证命令(goldfish 仓库的 gf,已含配套修复):